//package com.hz.aop;
//
//import lombok.extern.slf4j.Slf4j;
//import org.aspectj.lang.ProceedingJoinPoint;
//import org.aspectj.lang.annotation.Around;
//import org.aspectj.lang.annotation.Aspect;
//import org.springframework.stereotype.Component;
//
//@Slf4j
//@Component
//@Aspect
//public class TimeAspect {
//
//    @Around("execution(* com.hz.service.*.*(..))")
//    public Object recordTime(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
//        long begin = System.currentTimeMillis();
//        Object object = proceedingJoinPoint.proceed();
//        long end = System.currentTimeMillis();
//        log.info("方法执行耗时：{ }ms",end - begin);
//
//        return object;
//
//    }
//}
